537883b633bf15e364edff22ac93f933a41d0df4,uniauth-server/src/main/java/com/dianrong/common/uniauth/server/datafilter/impl/UserDataFilter.java,UserDataFilter,getEnableRecordByPrimaryKey,#number#,62

Before Change


	protected User getEnableRecordByPrimaryKey(Integer id) {
		CheckEmpty.checkEmpty(id, "userId");
		UserExample condition = new UserExample();
		condition.createCriteria().andIdEqualTo(new Long(id.toString())).andTenancyIdEqualTo(getTenancyId()).andStatusEqualTo(AppConstants.STATUS_ENABLED);
		List<User> selectByExample = userMapper.selectByExample(condition);
		if(selectByExample != null && !selectByExample.isEmpty()){
			return selectByExample.get(0);

After Change


	protected User getEnableRecordByPrimaryKey(Integer id) {
		CheckEmpty.checkEmpty(id, "userId");
		UserExample condition = new UserExample();
		condition.createCriteria().andIdEqualTo(new Long(id.toString())).andStatusEqualTo(AppConstants.STATUS_ENABLED);
		List<User> selectByExample = userMapper.selectByExample(condition);
		if(selectByExample != null && !selectByExample.isEmpty()){
			return selectByExample.get(0);